home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-seriously_amiga-
/
misc
/
ced_html
/
html
/
html_glossary.ced
< prev
next >
Wrap
Text File
|
1999-01-25
|
2KB
|
69 lines
/*
** html_glossary.ced
**
** $VER: html_glossary.ced 1.3 (12.20.1998)
**
** Arexx script for HTML v3.2 glossary structure
**
** This script works with CygnusEd Professional v4.2
**
** Copyright © Eric BELLE
*/
/*
**------------------------------------------------------------------------------
** Initialisation
**------------------------------------------------------------------------------
*/
OPTIONS RESULTS /* Tell CygnusEd to return results. */
NL = '0A'X /* Alias for new line. */
KRETURN = RAWKEY 68 /* Shortcut to the return key. */
KTAB = RAWKEY 66 /* Shortcut to the tab key. */
STATUS TABSARESPACES /* Return TAB mode ("tab" or "space"). */
IF RESULT = 1 /* Test the TAB mode. */
THEN "TABS = SPACES" /* Switch TAB mode from "space" to "tab". */
ELSE NOP /* No operation. */
TAB SIZE 1 /* Set TAB size proportional to 2 spaces. */
/*
**------------------------------------------------------------------------------
** Item number
**------------------------------------------------------------------------------
*/
GETNUMBER 1 '"How many items?"' 1 32768
ItemNumber = RESULT
IF (ItemNumber=" ")
THEN EXIT 0
ELSE NOP
/*
**------------------------------------------------------------------------------
** Html glossary structure
**------------------------------------------------------------------------------
*/
TEXT "<DL>" ; "AUTO-INDENT" ; KTAB
DO I=1 TO ItemNumber
TEXT "<DT>" ; "AUTO-INDENT" ; KTAB
ItemText = "Should be modified - Item" || I
TEXT ItemText ; "AUTO-INDENT" ; BACKTAB
TEXT "</DT>" ; "AUTO-INDENT"
TEXT "<DD>" ; "AUTO-INDENT" ; KTAB
DefinitionText = "Should be modified - Definition" || I
TEXT DefinitionText ; "AUTO-INDENT" ; BACKTAB
TEXT "</DD>" ; "AUTO-INDENT"
END
BACKTAB
TEXT "</DL>"
/*
**------------------------------------------------------------------------------
** End of html_glossary.ced Arexx script
**------------------------------------------------------------------------------
*/
EXIT 0